package com.qf.listener.work;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Component
public class WorkMessageListener02 {

    @RabbitListener(queues = "work_queue")
    public void consum(String message){
        System.out.println("工作队列 ----------- 2 消费：" + message);
    }

}
